package com.yuyou.train.util.bean;

import com.alibaba.fastjson.JSONObject;

public class LoginRedisObj {
		
	private String userId;
	
	private String userName;
	
	/**
	 * 0:portal用户，1：admin用户
	 */
	private String tag;
	
	/**
	 * 类别：0：学员，1：导师
	 */
	private String type;

	
	
	public LoginRedisObj(String userId,String userName,String tag,String type){
		this.userId=userId;
		this.userName=userName;
		this.tag=tag;
		this.type=type;
	}
	
	
	
	public String getType() {
		return type;
	}



	public void setType(String type) {
		this.type = type;
	}



	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public enum tagEnum{		
		portal("0"),admin("1");		
		tagEnum(String value){
			this.value=value;
		}		
		private String value;
		public String getValue() {
			return value;
		}			
	}
	
	
	public String toJson(){
		return JSONObject.toJSONString(this,true);
		
	}
	
	
}
